package com.zcxy.fast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcxy.fast.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 主表
 *
 * @author zcc
 * @email  860474958@qq.com
 * @date   2021-01-15 14:00:36
 */
@Data
@TableName(value ="main_table",autoResultMap = true)
@ApiModel(value = "MainTable", description = "主表")
public class MainTable extends BaseEntity {

    @TableId(type = IdType.UUID)
    @Length(max = 32, message = "id 超出最大长度：32")
    @ApiModelProperty(value = " 主键", required = false)
    private String id ;

    @Length(max = 512, message = "remark 超出最大长度：512")
    @ApiModelProperty(value = " 备注", required = false)
    private String remark ;

    @Length(max = 32, message = "code 超出最大长度：32")
    @ApiModelProperty(value = " 代码", required = false)
    private String code ;

    @Length(max = 100, message = "name 超出最大长度：100")
    @ApiModelProperty(value = " 名称", required = false)
    private String name ;

    @Length(max = 1, message = "type 超出最大长度：1")
    @ApiModelProperty(value = " 1.常规2.sql", required = false)
    private String type ;

    @Length(max = 65535, message = "sql 超出最大长度：65535")
    @ApiModelProperty(value = " SQL详情", required = false)
    private String sql ;

    @Length(max = 1, message = "status 超出最大长度：1")
    @ApiModelProperty(value = " 0禁用1启用", required = false)
    private String status ;

    @Length(max = 1, message = "sysType 超出最大长度：1")
    @ApiModelProperty(value = " 1.系统预设不可删除2.自行添加", required = false)
    private String sysType ;



}
